<?php
//define('DEBUG',TRUE);
require_once ('config/app.conf.php');
require_once ('config/ct.conf.php');
define('__ROOT__', preg_replace("/" . $GLOBALS['SYS']['SITE_DIR'] . "$/", '', dirname(__FILE__)));
if (strrpos(strtolower(php_uname()) , 'windows')) {
	define('__SEP__', '\\');
}
else {
	define('__SEP__', '/');
}
define('__APP__', __ROOT__ . $GLOBALS['SYS']['SITE_DIR'] . __SEP__);
define('__VAR__', __APP__ . 'var' . __SEP__);
define('__CT__', __ROOT__ . $GLOBALS['SYS']['CTPHP_DIR'] . __SEP__);
define('__PLU__', __ROOT__ . $GLOBALS['SYS']['PLUGINS_DIR'] . __SEP__); //插件目录
define('__DIR_VAR_IMG___', __VAR__ . 'image' . __SEP__);
define('__DIR_VAR_IMG_GEN___', __VAR__ . 'image' . __SEP__ . 'gen' . __SEP__);
define('__DIR_VAR_IMG_TMP___', __VAR__ . 'image' . __SEP__ . 'tmp' . __SEP__);
require_once (__PLU__ . 'conf.php');
//var_dump(__ROOT__);
require_once (__ROOT__ . $GLOBALS['SYS']['CTPHP_DIR'] . __SEP__ . 'boot.php');
header('Content-Type: text/html; charset=utf-8');
session_start();
?>